﻿using BLWCMS.Core.Models;

namespace BLWCMS.Core.IBusiness
{
    public interface IWeixinConfigBusiness
    {
        /// <summary>
        /// 写入配置项
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        void WriteConfig(string name, string value);

        /// <summary>
        /// 读取配置项
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        string ReadConfig(string name);

        /// <summary>
        /// 写入微信配置项
        /// </summary>
        /// <param name="weixinConfigModel"></param>
        /// <returns></returns>
        string WriteWeixinConfig(WeixinConfigModel weixinConfigModel);

        /// <summary>
        /// 读取微信配置项
        /// </summary>
        /// <returns></returns>
        WeixinConfigModel GetModel();
    }
}
